#include <iostream>
using std::endl;
using std::cout;
class A
{
public:
	void a(){
		cout<<"a()"<<endl;
	}
};
class B : public A
{
public:
	void b(){
		cout<<"b()"<<endl;
	}
};
class C : public B
{
public:
	void c(){
		cout<<"c()"<<endl;
	}
};

int main(void)
{
	C* c=new C();
	//c->a();
	//c->b();
	//c->c();
	B* b=c;
	A* a=b;

	//cout<<c<<endl;
	//cout<<b<<endl;
	//cout<<a<<endl;

	b->a();
	b->b();
	//b->c();

	a->a();
	//a->b();
	//a->c();

	return 0;
}